/**
Copyright 2011 Michael Shick

This file is part of Joggle.

Joggle is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Joggle is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Joggle.  If not, see <http://www.gnu.org/licenses/>.
*/
package edu.gwu.cs.joggle;

import java.security.PublicKey;
import java.util.HashMap;

/**
 * Manager for connections to peers.
 * @author Michael Shick <mfshick@gwmail.gwu.edu>
 * @version 0.1
 * @since alpha
 */
public class Swarm
{
    private HashMap<String, Peer> peers;

    /**
     * Creates an empty swarm of peers
     */
    public Swarm()
    {
        peers = new HashMap<String, Peer>();
    }

    public int addPeer(String peerLocation, PublicKey peerKey)
    {
        return 0;
    }

    /**
     * Get the number of peers currently associated with this swarm
     * @return peer count
     */
    public int size()
    {
        return peers.size();
    }
}
